* {
    padding: 0;
    margin: 0;
}



/* css表格 */
.table {
    display: table;
    width: 300px;
}

.table section:nth-of-type(1){
    display: table-header-group;
    background-color: #1f1f1f;
    color: white;
}

.table section:nth-of-type(2){
    display: table-row-group;
}

.table section:nth-of-type(3){
    display: table-footer-group;
    background-color: #999;
}

.table ul {
    display: table-row;
}

.table ul li{
    display: table-cell;
    border: 1px solid #666;
    padding: 10px;
}


/* html标签表格 */
table {
    width: 300px;
    /* 细线、间距、空白表格处理 */
    border: none;
    border-collapse: collapse;
    border-spacing: 0px;
    empty-cells: hide;
}

table caption{
    background-color: blue;
    text-align: center;
    line-height: 40px;
    color: #fff;
    height: 40px;
}

table thead {
    background-color: #646464;
    color: white;
    text-align: center;
}

table tbody tr:nth-child(odd){
    background-color: rgb(203, 203, 203);
}

table tbody tr:nth-child(even){
    background-color: rgb(213, 221, 53);
}

table td {
    height: 30px;
    text-align: center;
    vertical-align: middle;
    /* border: 1px solid red; */
    border: none;
    border-top: 1px solid rgb(168, 18, 18);
    border-right: 1px solid rgb(168, 18, 18);
    padding: 10px;
}

table tr td:last-child {
    border-right: none;
}
table tr:last-child td {
    border-bottom: 1px solid rgb(168, 18, 18);
}